home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Nave / BlobLander.swf / scripts / frame_4 / PlaceObject2_143_597 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2006-06-13  |  3KB  |  111 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.ship.percentage < 100)
  3.    {
  4.       this.n100.gotoAndStop("off");
  5.    }
  6.    if(_root.ship.percentage < 95)
  7.    {
  8.       this.n95.gotoAndStop("off");
  9.    }
  10.    if(_root.ship.percentage < 90)
  11.    {
  12.       this.n90.gotoAndStop("off");
  13.    }
  14.    if(_root.ship.percentage < 85)
  15.    {
  16.       this.n85.gotoAndStop("off");
  17.    }
  18.    if(_root.ship.percentage < 80)
  19.    {
  20.       this.n80.gotoAndStop("off");
  21.    }
  22.    if(_root.ship.percentage < 75)
  23.    {
  24.       this.n75.gotoAndStop("off");
  25.    }
  26.    if(_root.ship.percentage < 70)
  27.    {
  28.       this.n70.gotoAndStop("off");
  29.    }
  30.    if(_root.ship.percentage < 65)
  31.    {
  32.       this.n65.gotoAndStop("off");
  33.    }
  34.    if(_root.ship.percentage < 60)
  35.    {
  36.       this.n60.gotoAndStop("off");
  37.    }
  38.    if(_root.ship.percentage < 55)
  39.    {
  40.       this.n55.gotoAndStop("off");
  41.    }
  42.    if(_root.ship.percentage < 50)
  43.    {
  44.       this.n50.gotoAndStop("off");
  45.    }
  46.    if(_root.ship.percentage < 45)
  47.    {
  48.       this.n45.gotoAndStop("off");
  49.    }
  50.    if(_root.ship.percentage < 40)
  51.    {
  52.       this.n40.gotoAndStop("off");
  53.    }
  54.    if(_root.ship.percentage < 35)
  55.    {
  56.       this.n35.gotoAndStop("off");
  57.    }
  58.    if(_root.ship.percentage < 30)
  59.    {
  60.       this.n30.gotoAndStop("off");
  61.    }
  62.    if(_root.ship.percentage < 25)
  63.    {
  64.       this.n25.gotoAndStop("off");
  65.    }
  66.    if(_root.ship.percentage < 20)
  67.    {
  68.       this.n20.gotoAndStop("off");
  69.    }
  70.    if(_root.ship.percentage < 15)
  71.    {
  72.       this.n15.gotoAndStop("off");
  73.    }
  74.    if(_root.ship.percentage < 10)
  75.    {
  76.       this.n10.gotoAndStop("off");
  77.    }
  78.    if(_root.ship.percentage < 5)
  79.    {
  80.       this.n5.gotoAndStop("off");
  81.       _root.lowpower = true;
  82.    }
  83.    if(_root.ship.percentage >= 100)
  84.    {
  85.       this.n100.gotoAndStop("on");
  86.    }
  87.    if(_root.ship.percentage > 95)
  88.    {
  89.       this.n95.gotoAndStop("on");
  90.       this.n90.gotoAndStop("on");
  91.       this.n85.gotoAndStop("on");
  92.       this.n80.gotoAndStop("on");
  93.       this.n75.gotoAndStop("on");
  94.       this.n70.gotoAndStop("on");
  95.       this.n65.gotoAndStop("on");
  96.       this.n60.gotoAndStop("on");
  97.       this.n55.gotoAndStop("on");
  98.       this.n50.gotoAndStop("on");
  99.       this.n45.gotoAndStop("on");
  100.       this.n40.gotoAndStop("on");
  101.       this.n35.gotoAndStop("on");
  102.       this.n30.gotoAndStop("on");
  103.       this.n25.gotoAndStop("on");
  104.       this.n20.gotoAndStop("on");
  105.       this.n15.gotoAndStop("on");
  106.       this.n10.gotoAndStop("on");
  107.       this.n5.gotoAndStop("on");
  108.       _root.lowpower = false;
  109.    }
  110. }
  111.